import 'package:json_annotation/json_annotation.dart';

part 'Author.g.dart';

@JsonSerializable(fieldRename: FieldRename.snake, checked: true)
class Author {
  String name;

  Author(this.name);
  @override
  String toString() {
    // TODO: implement toString
    return "Author{name: $name}";
  }
  factory Author.fromJson(Map<String, dynamic> json) => _$AuthorFromJson(json);
}